Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Support working from HTMLImageElements from DOM #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JamesMaroney
Copy link

new Image() and document.querySelector('img') will now both pass this test

new Image() and document.querySelector('img') will now both pass this test
@brianium
Copy link
Owner

@JamesMaroney thanks a lot for the pull request! I like this approach, and it definitely makes sense. It's causing a bit of a hiccup in the test suite (probably due to my poly filling of the Image constructor in jestEnvironment.js - since its not available in the test environment.

Maybe its as easy as stubbing in a toString implementation for that polyfill?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants